<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]>      <html class="no-js"> <!--<![endif]-->
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title></title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="">
    <style>
      form {
        border: 1px solid;
        color: gray;
        padding: 4px;
      }
      
      .item:focus-within {
        background: #ff8;
        color: black;
      }

      .item[data-require]::before{
        content: '*';
        color: red;
      }
      
      input {
        margin: 4px;
      }

    </style>
  </head>
  <body>
    <form>
      <div class="item" data-require>
        <label for="given_name">给定名称：</label>
        <input id="given_name" type="text" />
      </div>
      <div class="item">
        <label for="family_name">家庭名称：</label>
        <input id="family_name" type="text" />
      </div>
    </form>
  </body>
</html>
<script src="" async defer></script>